using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Xml;
using System.Windows.Forms;

namespace UTLBASEFORM
{
    public class CAppConfig
    {


    /// <summary>
    /// UpdateAppSettings: It will update the app.Config file AppConfig key values
    /// </summary>
    /// <param name="KeyName">AppConfigs KeyName</param>
    /// <param name="KeyValue">AppConfigs KeyValue</param>
    /// <remarks></remarks>
    //public static void UpdateAppSettings(string KeyName, string KeyValue)
    //{
    //    XmlDocument XmlDoc = new XmlDocument();
    //    XmlDoc.Load(Application.StartupPath);
    //    For Each xElement new XmlElement In XmlDoc.DocumentElement
    //    {
    //        If xElement.Name = "appSettings" Then
    //            For Each xNode As XmlNode In xElement.ChildNodes
    //                If xNode.Attributes(0).Value = KeyName Then
    //                    xNode.Attributes(1).Value = KeyValue
    //                End If
    //            Next
    //        End If
    //    }
    //    XmlDoc.Save(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile)
    //}

    }
}
